{% extends "base.twig" %}

{% block content %}
	<div class="content-wrapper">
		<article class="post-type-{{ post.post_type }}" id="post-{{ post.ID }}">
{% if post.thumbnail is defined %}
{% if post.thumbnail.src is defined %}
			<img src="{{ post.thumbnail.src|resize(1200, 300)|relative }}">
{% endif %}
{% endif %}
			<section class="article-content">
				<h1 class="article-h1">{{ post.title }}</h1>
				<p class="blog-author">
					<span>By</span><a href="{{post.author.path}}"> {{ post.author.name }} </a><span>&bull;</span> {{ post.date }}
				</p>
				<div class="article-body">
{% filter indent(5) %}
{{post.content}}{# #}
{% endfilter %}
				</div>
			</section>

			<!-- comment box -->
			<section class="comment-box">
				<!-- comments -->
				<div class="comments">
{% if post.comments %}
					<h3> comments </h3>
{% filter indent(5) %}
{% for cmt in post.comments %}
{% include "comment.twig" with {comment:cmt} %}
{% endfor %}
{% endfilter %}
{% endif %}
				</div>

{% if post.comment_status == "closed" %}
					<p> comments for this post are closed </p>
{% else %}
					<!-- comment form -->
{% filter indent(4) %}
{% include "comment-form.twig" %}
{% endfilter %}
{% endif %}
			</section>
		</article>
	</div><!-- /content-wrapper -->
{% endblock %}
{# vi: set ts=4 sw=4 ft=html noet: #}
